<?php /* Smarty version 2.6.16, created on 2012-07-20 10:27:57
         compiled from video_review.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'nl2br', 'video_review.tpl', 33, false),)), $this); ?>
<div id="paging">  
	<div class="content">
   		
				<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'user_tabs.tpl', 'smarty_include_vars' => array('active_tab' => 'reviews')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
				
        <div class="clear"></div>
        <div class="tabular-content">
            <div class="tab_sub">
            	<ul>
                	<?php if ($this->_tpl_vars['is_coach'] == '1' || $this->_tpl_vars['is_partner'] == '1'): ?><li><a href="my_review.php" class="active">My Reviews</a></li><?php endif; ?>
					<li><a href="my_video_review.php" class="active">My Video Reviews</a></li>
					<li><a href="coach_review.php" class="active">Reviews to User</a></li>
					<li><a href="javascript:;" >Reviews to video</a></li>
                </ul>
            </div>
			 <div class="clear"></div>
			 <?php if ($this->_tpl_vars['Numvdoreview'] > 0): ?>
				<div>
			      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabular_row">
					   <?php unset($this->_sections['vdorow']);
$this->_sections['vdorow']['name'] = 'vdorow';
$this->_sections['vdorow']['loop'] = is_array($_loop=$this->_tpl_vars['reviewvdoArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['vdorow']['show'] = true;
$this->_sections['vdorow']['max'] = $this->_sections['vdorow']['loop'];
$this->_sections['vdorow']['step'] = 1;
$this->_sections['vdorow']['start'] = $this->_sections['vdorow']['step'] > 0 ? 0 : $this->_sections['vdorow']['loop']-1;
if ($this->_sections['vdorow']['show']) {
    $this->_sections['vdorow']['total'] = $this->_sections['vdorow']['loop'];
    if ($this->_sections['vdorow']['total'] == 0)
        $this->_sections['vdorow']['show'] = false;
} else
    $this->_sections['vdorow']['total'] = 0;
if ($this->_sections['vdorow']['show']):

            for ($this->_sections['vdorow']['index'] = $this->_sections['vdorow']['start'], $this->_sections['vdorow']['iteration'] = 1;
                 $this->_sections['vdorow']['iteration'] <= $this->_sections['vdorow']['total'];
                 $this->_sections['vdorow']['index'] += $this->_sections['vdorow']['step'], $this->_sections['vdorow']['iteration']++):
$this->_sections['vdorow']['rownum'] = $this->_sections['vdorow']['iteration'];
$this->_sections['vdorow']['index_prev'] = $this->_sections['vdorow']['index'] - $this->_sections['vdorow']['step'];
$this->_sections['vdorow']['index_next'] = $this->_sections['vdorow']['index'] + $this->_sections['vdorow']['step'];
$this->_sections['vdorow']['first']      = ($this->_sections['vdorow']['iteration'] == 1);
$this->_sections['vdorow']['last']       = ($this->_sections['vdorow']['iteration'] == $this->_sections['vdorow']['total']);
?>
					   <tr <?php if ($this->_sections['vdorow']['index']%2 != 0): ?>class="alter"<?php endif; ?>>
                        <td width="50">
						<img src="uploaded/video_images/thumbs/<?php echo $this->_tpl_vars['reviewvdoArr'][$this->_sections['vdorow']['index']]['video_image']; ?>
" width="57" height="50" border="0" /></td>
						<td width="200" valign="top"><strong>
						<a href="videodetails.php?video_id=<?php echo $this->_tpl_vars['reviewvdoArr'][$this->_sections['vdorow']['index']]['video_id']; ?>
"><?php echo $this->_tpl_vars['reviewvdoArr'][$this->_sections['vdorow']['index']]['video_title']; ?>
</a></strong><br />
						<i>by: <?php echo $this->_tpl_vars['reviewvdoArr'][$this->_sections['vdorow']['index']]['name']; ?>
</i>
						</td>
						<td width="100" valign="top" style="padding-right:10px;"><strong>
						<?php echo $this->_tpl_vars['reviewvdoArr'][$this->_sections['vdorow']['index']]['review_date']; ?>
</strong>
						</td>
						<td valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['reviewvdoArr'][$this->_sections['vdorow']['index']]['review_comment'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</td>
						<td width="20" valign="top"> <a href="#" 
						 onclick="ConfirmDelete('<?php echo $this->_tpl_vars['page_name']; ?>
?action=del','<?php echo $this->_tpl_vars['reviewvdoArr'][$this->_sections['vdorow']['index']]['video_review_id']; ?>
','<?php echo $this->_tpl_vars['reviewvdoArr'][$this->_sections['vdorow']['index']]['video_title']; ?>
','Your review for:: ')">
						 <img src="images/close_small.gif" alt="" border="0" /></a></td>
						</tr>
					   <?php endfor; endif; ?>                          
                </table>
				</div>
        	<div class="clear"></div>
            <br />
            <div class="tab_sub">
            	&nbsp;
            </div>
            <div class="tab_search">
            	&nbsp;
            </div>
            <div class="tab_pagination">
            	<?php if ($this->_tpl_vars['pagination_arr'][1]): ?>
				 <div class="clear"></div>
				  <div class="pagin">
					 <ul>
					   <?php echo $this->_tpl_vars['pagination_arr'][1]; ?>

					 </ul>
				  </div>
				 <?php endif; ?>
            </div>   
            <div class="clear"></div> 
			<?php else: ?>
				<div align="left" style="padding:10px;">No record found</div>
			<?php endif; ?>
      </div>
   </div>
</div>